var Utils = {
	get: function(objectId){
		return document.getElementById(objectId);
	},
	
	addEvent: function(obj, type, func){
		if (obj.attachEvent){
			obj.attachEvent("on" + type, func);
		}else if (obj.addEventListener){
			obj.addEventListener(type, func, false);
		}
	}
};

Math.iRandom = function(a, b){
	if (b == undefined){
		b = a;
		a = 0;
	}
	b -= a;
	
	return a + Math.round(Math.random() * b);
};
